public class ReportsController {
	//public List<Account> employeesList{get;set;}
	public List<Store__c> storesList{get;set;}
	public List<Personal_Time_Off__c> allTimeOffList{get;set;}
	public List<Personal_Time_Off__c> employeeTimeOffList;
	public String employeeId;
	public String storeId;
	
	public List<Personal_Time_Off__c> getPersonalTimeOffByEmployee(){
		try{
			Integer currentMonth = Date.today().month();
			employeeTimeOffList = [SELECT Approved__c, Date__c, Employee__c, Number_Days__c, Type__c 
								   FROM Personal_Time_Off__c
								   WHERE CALENDAR_MONTH(Date__c) =:currentMonth AND Employee__c=:employeeId];
			return employeeTimeOffList;
		}catch(Exception ex){
			return null;
		}
	}
	
	public List<Contact> employeesList{
		get{
			if(employeesList==null)
			employeesList = [SELECT c.Salutation, c.FirstName, c.LastName, c.Account.Current_Store__c,
							 c.AccountId FROM Contact c];
			return employeesList;
		}
		set;
	}
}